package service.impl;

import service.UserManager;
//懒汉模式
public class UserManagerFactory {
	private static UserManager um;
	public static UserManager getUserManagerInstance(){
		if(um==null){
			um=new UserManagerImplMock();
		}
		return um;
	}
}
//饿汉模式
//public class UserManagerFactory {
//	private static UserManager um;
//	static{
//		um=new UserManagerImplMock();
//	}
//	public UserManager getUserManagerInstance(){
//		return um;
//	}
//}